FROM python:3.8
WORKDIR /

COPY ./requirements.txt /requirements.txt

RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
# 设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY . /
## 使用gunicorn
CMD ["gunicorn", "app:app", "-c", "./gunicorn/config.py"]